package com.ruoyi.know.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程章节对象 course_chapters
 *
 * @author ruoyi
 * @date 2025-01-26
 */
public class CourseChapters extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 章节id */
    private Long chapterId;

   private Courses course;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String chapterName;

    /** 章节描述 */
    @Excel(name = "章节描述")
    private String chapterDesc;

    /** 是否有效：0无效1有效 */
    private Long isValid;

    /** 创建人 */
    private Long createdBy;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public void setChapterId(Long chapterId)
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId()
    {
        return chapterId;
    }

    public Courses getCourse() {
        return course;
    }

    public void setCourse(Courses course) {
        this.course = course;
    }

    public void setChapterName(String chapterName)
    {
        this.chapterName = chapterName;
    }

    public String getChapterName()
    {
        return chapterName;
    }
    public void setChapterDesc(String chapterDesc)
    {
        this.chapterDesc = chapterDesc;
    }

    public String getChapterDesc()
    {
        return chapterDesc;
    }
    public void setIsValid(Long isValid)
    {
        this.isValid = isValid;
    }

    public Long getIsValid()
    {
        return isValid;
    }
    public void setCreatedBy(Long createdBy)
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chapterId", getChapterId())
            .append("course", getCourse())
            .append("chapterName", getChapterName())
            .append("chapterDesc", getChapterDesc())
            .append("isValid", getIsValid())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updateBy", getUpdateBy())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
